﻿<div class="site-block">
    <div class="header">
        <span>@ForumContext.GetText(LanguageSection.CPANEL, "PAGE_NAME")</span>
    </div>
    <ul class="menu-left">
        <li>
            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.CONTROL_PANEL), ForumContext.GetText(LanguageSection.CPANEL, "home_page"))
        </li>
        <li>
            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.PROFILE), ForumContext.GetText(LanguageSection.PROFILE, "PAGE_NAME"))
        </li>
        <li>
            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.CHANGE_EMAIL_PASSWORD), ForumContext.GetText(LanguageSection.CHANGE_EMAIL_PASSWORD, "PAGE_NAME"))
        </li>
        <li>
            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.SIGNATURE), ForumContext.GetText(LanguageSection.SIGNATURE, "PAGE_NAME"))
        </li>
        <li>
            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.AVATAR), ForumContext.GetText(LanguageSection.AVATAR, "PAGE_NAME"))
        </li>
    </ul>
</div>
@if (ForumContext.IsSuperMod || ForumContext.UserInfo.Permissions.SubscribeToForums || ForumContext.UserInfo.Permissions.SubscribeToTopics)
{
    
    
    <div class="site-block white-t">
        <div class="header">
            <span>@ForumContext.GetMvcText(LanguageSection.SUBSCRIPTION, "CURRENT_SUBSCRIPTION")</span>
        </div>
        <ul class="menu-left">
            @if (ForumContext.UserInfo.Permissions.SubscribeToTopics)
            {
                <li>
                    @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.TOPIC_SUBSCRIBE), ForumContext.GetText(LanguageSection.SUBSCRIPTION, "Topic"))
                </li>
            }
            @if (ForumContext.UserInfo.Permissions.SubscribeToForums)
            {
                <li>
                    @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.FORUM_SUBSCRIBE), ForumContext.GetText(LanguageSection.SUBSCRIPTION, "Forum"))
                </li>   
            }
        </ul>
    </div>

}
